package com.HomeWorkhsp.Chapter08.extends_.exercise;

/**
 * Enjoy programming!!!
 * Time: 2021/11/20 -  15:07
 */
public class PC extends Computer {
    private String brand;
    NotePad n = new NotePad("属性");


    public PC() {
    }

    public PC(String cpu, int ram, int harddisk, String brand) {
        super(cpu, ram, harddisk);
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String setColor(String color){
        return n.getColor();
    }

    public void printinfo(String color) {
        System.out.println(getDetails() + " 品牌是："
                + getBrand() + " color是：" + setColor(color));
    }
}
